-- GENERATED SPELL FOR [Mechano-Tank] --


function spell0_6225(pUnit, Event) --@Machine Gun,n/a--
pUnit:FullCastSpellOnTarget(10346,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6225', 500, 1)
end

function Sorts_6225(pUnit, Event)
local choix_sorts_6225 = math.random(0, 0)
if choix_sorts_6225 == 0 then
pUnit:RegisterEvent('spell0_6225', 1, 1)
end
end

function mob6225_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6225', math.random(1500, 3000), 1)
end

function mob6225_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6225_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6225_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6225, 1, 'mob6225_Action')
RegisterUnitEvent(6225, 2, 'mob6225_Leave')
RegisterUnitEvent(6225, 3, 'mob6225_Kill')
RegisterUnitEvent(6225, 4, 'mob6225_Die')
